package com.qk.management.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qk.domain.customer.CustomerDO;
import com.qk.dto.customer.CustomerListDTO;
import com.qk.entity.Customer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @author diva
 * @date 2025/10/17 8:20
 * @ProjectName
 */

public interface CustomerMapper extends BaseMapper<Customer>{
    List<CustomerDO> selectByPage(CustomerListDTO dto);
    //修改客户信息
    @Update("update customer set phone = #{phone},name = #{name},channel = #{channel},degree=#{degree},gender = #{gender},age=#{age},wechat=#{wechat},qq=#{qq},job_status=#{jobStatus},subject=#{subject},course_id=#{courseId},update_time = #{updateTime} where id = #{id}")
    void update(Customer customer);
}
